/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.structure;

/**
 *
 * @author dell
 */
import entity.support.Area;
import entity.support.LogIndexable;
import entity.support.Obj;
import java.util.Date;
import java.util.Map;
public class Facility extends Obj implements LogIndexable
{
//columns_______________________________________________________________________
private Area area;
private int detectornum;
private int controllernum;
private int companyid;
private Date validatetime;
private String remark;
//functions_____________________________________________________________________
     //operator_________________________________________________________________
public Facility()
{
     this.area=new Area();
}
public Facility(Obj o)
{
     this.area=new Area();
     this.id=o.getId();
     this.name=o.getName();
     this.intime=o.getIntime();
     this.updatetime=o.getUpdatetime();
}
public Facility(Map<String,String> map)
{
     
}
     //getter___________________________________________________________________
public Area getArea() 
{
     return area;
}
public int getDetectornum() 
{
     return detectornum;
}
public int getControllernum() 
{
     return controllernum;
}
public int getCompanyid() 
{
     return companyid;
}
public Date getValidatetime() 
{
     return validatetime;
}
public String getRemark() 
{
     return remark;
}
     //setter___________________________________________________________________
public void setArea(Area area) 
{
     this.area = area;
}
public void setDetectornum(int detectornum) 
{
     this.detectornum = detectornum;
}
public void setControllernum(int controllernum) 
{
     this.controllernum = controllernum;
}
public void setCompanyid(int companyid) 
{
     this.companyid = companyid;
}
public void setValidatetime(Date validatetime) 
{
     this.validatetime = validatetime;
}
public void setRemark(String remark) 
{
     this.remark = remark;
}
     //toString_________________________________________________________________
@Override
public String toString()
{
     return super.toString()+area+"\t"+detectornum+"\t"+controllernum+"\t"+
             companyid+"\t"+validatetime+"\t"+remark;
}
}
